setDuration

abstract fun setDuration(block: DesignBlock, duration: Double)

Set the playback duration of the given block in seconds. The duration defines for how long the block is active in the scene during playback. If a duration is set on the page block, it becomes the duration source block. Note: The duration is ignored when the scene is not in "Video" mode. Note: This also adjusts the trim for non looping blocks.

Parameters

block

the block whose duration should be changed.

duration

the new duration in seconds.